package com.binlog.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Bin log db propertys
 *
 * @description: 配置代码
 * @author: cyj
 * @date 2022 -05-13 16:46:37
 *
 *
 */
@Data
@Component
@ConfigurationProperties(prefix = "binlog")
public class BinLogDbPropertys {

    /**
     * 监听DB配置
     */
    private List<BinLogDbProperty> datasource;

    /**
     * 备份
     */
    private BinLogDbProperty backupsDatasource;

}
